#{extends 'CRUD/layout.html' /}

<div id="crudBlank" class="${type.name}">
	
	<h2 id="crudBlankTitle">&{'crud.blank.title', type.modelName}</h2>
	
	<div class="objectForm">
	#{form action:@create(), enctype:'multipart/form-data'}
		#{crud.form fields:['name', 'email', 'pwdHash', 'avatar', 'isAdmin', 'deleted']}
			#{crud.custom 'pwdHash'}
 	<label for="object_pwdHash">pwdRaw</label> 
	<input id="object_pwdHash" class="" type="hidden" name="object.pwdHash" value="" size="50" /> 
	<input id="object_pwdRaw" class="" type="text" value="" size="50" onkeyup="md5($('#object_pwdRaw').val(), '#object_pwdHash');" /> 
	<span class="crudHelp">Required.</span>
			#{/crud.custom}
		#{/crud.form}
		<p class="crudButtons">
			<input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
			<input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" />
			<input type="submit" name="_saveAndAddAnother" value="&{'crud.saveAndAddAnother', type.modelName}" />
		</p>
	#{/form}
	</div>

</div>